package march.test_3_4;

import java.util.Scanner;

public class TestMain1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        for(int i = str.length() - 1; i >= 0; i --) {
            System.out.print(str.charAt(i));
        }
    }
}
